package com.fingard.dsp.bank.reqrespobj.subaccount;

import com.fingard.dsp.bank.reqrespobj.ReqRespHeader;
import com.fingard.dsp.bank.reqrespobj.RetAtsBase;
import com.fingard.dsp.bank.reqrespobj.mailedmsg.RetAtsMailedMsgDetail;
import com.fingard.xml.XmlTextWriter;

/**
 * @Description TODO
 * @Author xtt
 **/
public class RetAtsRecUpdate extends RetAtsBase {
    public String reqSeqID;
    public String respCode;
    public String respInfo;
    //操作状态码 1-交易成功 2-交易失败 3-未知
    public String transState;
    //银行返回信息码
    public String payInfoCode;
    //银行出口商编码
    public String exporterCode;

    public RetAtsRecUpdate(ReqRespHeader p_header) {
        retHeader = p_header;
        retXmlWriter = new XmlTextWriter();
    }

    public void writeXml(RetAtsRecUpdate retAts){
        retXmlWriter.writeElementString("RespCode",retAts.respCode);
        retXmlWriter.writeElementString("RespInfo",retAts.respInfo);
        retXmlWriter.writeStartElement("DetailRecord");
        retXmlWriter.writeElementString("ReqSeqID",retAts.reqSeqID);
        retXmlWriter.writeElementString("TransState",retAts.transState);
        retXmlWriter.writeElementString("PayInfoCode",retAts.payInfoCode);
        retXmlWriter.writeElementString("ExporterCode",retAts.exporterCode);
        writeEnd();
    }
}
